@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
Create new Parts ::
@parent
@stop

    @section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li><a href="{{  route('car_balance.parts.index') }}"><i class="icon-home"></i> Parts list</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">New Parts </li>
    @stop

@section('content.main')

<p>{{ link_to_route('car_balance.parts.index', 'Back to Parts list', null, array('class' => 'btn btn-info')) }}</p>

<div class="row-fluid">
    {{ Form::open(array('route' => 'car_balance.parts.create', 'class' => 'form-horizontal')) }}

    <div  class="control-group {{ $errors->first('purchase_date', ' error') }}">
        <label class="control-label" for="purchase_date">Purchase Date</label>
        <div class="controls">
            <input class="" placeholder="Purchase Date" title="Purchase Date" name="purchase_date" type="text" value="{{ Input::old('purchase_date') }}">
            {{ $errors->first('purchase_date', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('parts_name', ' error') }}">
        <label class="control-label" for="parts_name">Parts Name</label>
        <div class="controls">
            <input class="" placeholder="Parts Name" title="Parts Name" name="parts_name" type="text" value="{{ Input::old('parts_name') }}">
            {{ $errors->first('parts_name', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('seller', ' error') }}">
        <label class="control-label" for="seller">Seller</label>
        <div class="controls">
            <input class="" placeholder="Seller" title="Seller" name="seller" type="text" value="{{ Input::old('seller') }}">
            {{ $errors->first('seller', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('seller_send_type', ' error') }}">
        <label class="control-label" for="seller_send_type">Seller Send Type</label>
        <div class="controls">
            <input class="" placeholder="Seller Send Type" title="Seller Send Type" name="seller_send_type" type="text" value="{{ Input::old('seller_send_type') }}">
            {{ $errors->first('seller_send_type', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('recieve_date', ' error') }}">
        <label class="control-label" for="recieve_date">Recieve Date</label>
        <div class="controls">
            <input class="" placeholder="Recieve Date" title="Recieve Date" name="recieve_date" type="text" value="{{ Input::old('recieve_date') }}">
            {{ $errors->first('recieve_date', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('pickup_car_chassis_number', ' error') }}">
        <label class="control-label" for="pickup_car_chassis_number">Pickup Car Chassis Number</label>
        <div class="controls">
            <input class="" placeholder="Pickup Car Chassis Number" title="Pickup Car Chassis Number" name="pickup_car_chassis_number" type="text" value="{{ Input::old('pickup_car_chassis_number') }}">
            {{ $errors->first('pickup_car_chassis_number', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('payment_type', ' error') }}">
        <label class="control-label" for="payment_type">Payment Type</label>
        <div class="controls">
            <input class="" placeholder="Payment Type" title="Payment Type" name="payment_type" type="text" value="{{ Input::old('payment_type') }}">
            {{ $errors->first('payment_type', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('payment_commission', ' error') }}">
        <label class="control-label" for="payment_commission">Payment Commission</label>
        <div class="controls">
            <input class="" placeholder="Payment Commission" title="Payment Commission" name="payment_commission" type="text" value="{{ Input::old('payment_commission') }}">
            {{ $errors->first('payment_commission', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('payment_date', ' error') }}">
        <label class="control-label" for="payment_date">Payment Date</label>
        <div class="controls">
            <input class="" placeholder="Payment Date" title="Payment Date" name="payment_date" type="text" value="{{ Input::old('payment_date') }}">
            {{ $errors->first('payment_date', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('price', ' error') }}">
        <label class="control-label" for="price">Price</label>
        <div class="controls">
            <input class="" placeholder="Price" title="Price" name="price" type="text" value="{{ Input::old('price') }}">
            {{ $errors->first('price', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('delivery_fee', ' error') }}">
        <label class="control-label" for="delivery_fee">Delivery Fee</label>
        <div class="controls">
            <input class="" placeholder="Delivery Fee" title="Delivery Fee" name="delivery_fee" type="text" value="{{ Input::old('delivery_fee') }}">
            {{ $errors->first('delivery_fee', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('commission', ' error') }}">
        <label class="control-label" for="commission">Commission</label>
        <div class="controls">
            <input class="" placeholder="Commission" title="Commission" name="commission" type="text" value="{{ Input::old('commission') }}">
            {{ $errors->first('commission', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('fee_mongol', ' error') }}">
        <label class="control-label" for="fee_mongol">Fee Mongol</label>
        <div class="controls">
            <input class="" placeholder="Fee Mongol" title="Fee Mongol" name="fee_mongol" type="text" value="{{ Input::old('fee_mongol') }}">
            {{ $errors->first('fee_mongol', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('comment', ' error') }}">
        <label class="control-label" for="comment">Comment</label>
        <div class="controls">
            <input class="" placeholder="Comment" title="Comment" name="comment" type="text" value="{{ Input::old('comment') }}">
            {{ $errors->first('comment', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('cancel_flag', ' error') }}">
        <label class="control-label" for="cancel_flag">Cancel Flag</label>
        <div class="controls">
            <input class="" placeholder="Cancel Flag" title="Cancel Flag" name="cancel_flag" type="text" value="{{ Input::old('cancel_flag') }}">
            {{ $errors->first('cancel_flag', '<span class="help-inline">:message</span>') }}
        </div>
    </div>

    <div class="control-group {{ $errors->first('customer_id', ' error') }}">
        <label class="control-label">Customer</label>
        <div class="controls">
            {{ Form::select('customer_id', $customer_list, '', array('data-placeholder' => 'Customer', 'class' => 'chosen span6', 'name' => 'customer_id')) }}
            {{ $errors->first('customer_id', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div class="control-group {{ $errors->first('car_auction_id', ' error') }}">
        <label class="control-label">Car Auction</label>
        <div class="controls">
            {{ Form::select('car_auction_id', $car_auction_list, '', array('data-placeholder' => 'Car Auction', 'class' => 'chosen span6', 'name' => 'car_auction_id')) }}
            {{ $errors->first('car_auction_id', '<span class="help-inline">:message</span>') }}
        </div>
    </div>

    <div class="form-actions">
        {{  Form::submit('Submit', array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
        {{  link_to_route('car_balance.parts.index', 'Cancel', null, array('class' => 'btn ')) }}
    </div>
    {{  Form::close() }}
@stop